package com.ccprint;

import com.ccprint.Print.Printmachine;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author cc
 * @date 2021/8/10 20:23
 * @Description
 */

public class PrintText {
    @Test
    public void Testone(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        Printmachine pp = context.getBean("pp", Printmachine.class);
        pp.print();
    }
}
